import {
	createRouter,
	createWebHashHistory,
	createWebHistory,
} from 'vue-router';
import LayOut from '@/layout/index.vue';
const routes = [{
	path: '/',
	name: 'layout',
	component: LayOut,
	redirect: '/home',
	children: [{
			path: '/three',
			name: 'three',
			component: () => import('@/views/three/index.vue'),
		},
		{
			path: '/home',
			name: 'home',
			component: () => import('@/views/home/index.vue'),
		},
		// {
		// 	path: '/map',
		// 	name: 'map',
		// 	component: () => import('@/views/map/index.vue'),
		// },
		// {
		// 	path: '/model1',
		// 	name: 'model1', // 然乌镇
		// 	component: () => import('@/views/model1/index.vue'),
		// },
		// {
		// 	path: '/model2',
		// 	name: 'model2', // 二郎山
		// 	component: () => import('@/views/model2/index.vue'),
		// },
	],
}, ];

const router = createRouter({
	// history: createWebHistory(),
	history: createWebHashHistory(),
	routes: routes,
});

export default router;